package zero.tech.games.mj.process;

import com.alibaba.fastjson.JSONObject;

import zero.tech.core.ZeroContext;
import zero.tech.core.data.Resp;
import zero.tech.games.logic.common.Room;
import zero.tech.games.logic.process.ReqRoomProcess;
import zero.tech.games.mj.data.consts.MJCMD;
import zero.tech.games.mj.service.api.IMjService;
import zero.tech.wsnet.controller.LogicController;
import zero.tech.wsnet.data.IREQ;

/**
 * 出牌请求
 * @author Administrator
 *
 */
@IREQ(code = MJCMD.REQ_OUT_CARD)
public class ReqOutCard extends ReqRoomProcess{

	@Override
	public void process(Room room, LogicController controller, Resp param) {
		IMjService service=ZeroContext.getInstance(IMjService.class);
		JSONObject obj = (JSONObject) param.getParam();
		int card = obj.getIntValue("card");
		service.reqOutCard(room, controller, card);
	}

}
